DUPLINE G3890 Communication Driver

 

Dupline G3890 communication driver is the driver to communicate with general controller of Carlo Gavazzi in Italy.

 

1. Read settings

 

<Figure 1> is read setting example of  Dupline G3890 communication driver. 

<Figure 1>  Read setting example of  Dupline G3890 communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to setting of controller.

G3890 controller can change baud rate(9600, 19200) by using Dip switch.

G3890 0030 model can set baud rate (1200, 2400, 4800, 9600) by using front panel button.

 

Note) Dupline controller have two communication method, Optolink(communication module) and G3890. 

You have to set 'pc_c' mode In order to communicate with computer.

 

Dupline G3890 communication driver¡¯s read schedule

Read schedule setting parameters are as follows:

1) Station – Don't care.

2) Memory Type – Memory = DT, DO, AC, AE, AO...

3) Read Start Address Read data type = 0 - Byte, 1 - Word, 2 - Double Word.

4) Save start address for Communication Server – Saving start address of Communication Server.

5) Read Size – fixed to 1. ( read always 16 data )

 

Read schedule example) 

READ,   0,   DT,   0,    0,   16,

READ,   0,   DO,   0,   16,  16,

READ,   0,   AC,   0,   32,  16,

READ,   0,   AE,   0,   48,  16,

READ,   0,   AG,   0,   64,  16,

READ,   0,   AI,    0,   80,  16,

READ,   0,   AK,   0,   96,  16,

READ,   0,   AM,   0,  114,  16,

READ,   0,   AO,   0,  128,  16,

 

2. Writing settings

You can write the setting value by using write settings.

 

Bit Write

Bit write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Don't care.

3)  ADDRESS           0 ~ 7 write channel number.

4)  Extra1                   Write area = A, B, C ... P.

5)  Extra2                   Don't care.

 

Write example 1) 

PORT : 0,  STATION : 0,  ADDRESS : 0002,  EXTRA1 : H ,  EXTRA2 :

The setting parameter shown above is On/Off control example of 2 channel of 'H' area( H3 address ).

 

Word Write

Word write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Don't care.

3)  ADDRESS           Don't care.

4)  Extra1                   Write area = A, B, C ... P.

5)  Extra2                   Don't care.

 

Write example 1) 

PORT : 0,  STATION : 0,  ADDRESS : 0002,  EXTRA1 : K, EXTRA2 :

The setting parameter shown above is an example of  KH' area control.

 

3. Note for communication setting

1)      Read cycle and write cycle of Dupline G3890 communication driver should be set to more than 3000 mSec. Because of  Dupline G3890 controller's response time equal more than 2000 mSce.

2)      The case of the G3890 0030 model, You have to set 'pc_c' mode In order to communicate with computer. ( by using front panel button)